计算机与现代化 ›› 2010, Vol. 1 ›› Issue (5): 92-95.doi: 10.3969/j.issn.1006-2475.2010.05.027

• 信息系统 • 上一篇    下一篇

基于VB的实时获取GPS数据信息研究与开发

张令勇,高 松,钟 磊   

  1. 山东理工大学交通与车辆工程学院,山东 淄博 255049
  • 收稿日期:2010-01-20 修回日期:1900-01-01 出版日期:2010-05-10 发布日期:2010-05-10

Research and Development of Capturing Real-time GPS Data Based on VB

ZHANG Ling-yong, GAO Song, ZHONG Lei   

  1. School of Transportation and Vehicle Engineering, Shandong University of Technology, Zibo 255049, China
  • Received:2010-01-20 Revised:1900-01-01 Online:2010-05-10 Published:2010-05-10

摘要: 为了解析GPS接收器的数据信息,利用VB 6.0编写串口程序,提取和分析GPS语句及其字段值,获得运动或静止的GPS模块的单点(非差分)定位数据语句信息,其中详细分析了GPS语句中的$GPGGA和$GPRMC语句,通过解析这两条语句各字段值,显示数据信息到窗口界面中,GPS数据信息包括基于WGS-84坐标系的经纬度、高度、速度、时间、运动方向等参数。所设计的算法可以应用到利用单片机开发车载GPS中。实验表明,系统运行稳定、简便、准确、实时性高。

关键词: GPS, WGS-84坐标系, VB, MSComm控件

Abstract: A kind of feasible arithmetic is introduced to develop serial procedures for parsing and capturing GPS data information from GPS receiver based on Visual Basic language. Available GPS sentences and field values are pick-up and analyzed. And dynamic or static single-point (non-differential) GPS module positioning data information is captured. Thereinto, the $GPGGA sentence and $GPRMC sentence are analyzed in detail, and the fields values of these two statements are parsed to show the GPS location information. The GPS information, which includes latitude and longitude coordinates based on WGS-84, altitude, speed, time, direction of movement and so on, is displayed on the window interface. Tests show that the system is running with stable, simple, accurate and high real-time.

Key words: GPS, WGS-84, VB, MSComm control

中图分类号: